import 'package:json_annotation/json_annotation.dart';
import 'package:short_drama/models/drama_model.dart';
import 'package:short_drama/models/home_tab_model.dart';

part 'home_list_model.g.dart';

@JsonSerializable()
class HomeListModel {
  final num? total;
  final num? per_page;
  final num? current_page;
  final num? last_page;
  final List<DramaModel>? data;

  const HomeListModel(
    this.total,
    this.per_page,
    this.current_page,
    this.last_page,
    this.data,
  );

  factory HomeListModel.fromJson(Map<String, dynamic> json) =>
      _$HomeListModelFromJson(json);

  Map<String, dynamic> toJson() => _$HomeListModelToJson(this);
}
